#!/bin/bash

jps=/opt/module/jdk1.8.0_212/bin/jps

for host in hadoop100 hadoop101 hadoop102; do
    echo ==================== $host =====================
    ssh $host $jps
done
